package mm;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class code01 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int i = scanner.nextInt();
        System.out.println(f(i));
        List list = new ArrayList();
    }

    public static int f(int n) {
        if (n < 10) {
            return 0;
        }
        //将数字转为各个单数子
        char[] charArray = String.valueOf(n).toCharArray();
        int[] nums = new int[charArray.length];
        ArrayList arrayList = new ArrayList();



        return 0;
    }
}
